#ifndef PREVIEWPIX_H
#define PREVIEWPIX_H

#include <QDialog>
#include <QPushButton>
#include <QLineEdit>
#include "ReadPix.h"

class PreviewPix : public QDialog
{
    Q_OBJECT
private:
    QString currentDirString;
    int currentPageInt;
    int pageCountInt;

    QPushButton* chooseDir_PushButton;
    QPushButton* pageUp_PushButton;
    QPushButton* pageDown_PushButton;

    QList<QPushButton*> previewPixList;
    QList<QPixmap> pixList;

    QLineEdit* currentDir_LineEdit;

    ReadPix* readPix_Thread;

    void resetThis();
public:
    PreviewPix(QWidget *parent = 0);
    ~PreviewPix();
private slots:
    void changeCurrentDir();
    void addPixOneByOne(const QPixmap& pix , int indexs);
    void pageUp();
    void pageDown();
};

#endif // PREVIEWPIX_H